From: Alejandro PiƱeiro Date: Tue, 27 Aug 2013 11:50:25 +0000 (+0200) Subject: a11y: calendar: add accessible name for next/prev month buttons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3590 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=40ae408b3b02dc78a05d26d57a3bc72a3a70c16c;p=gnome-shell.git a11y: calendar: add accessible name for next/prev month buttons https://bugzilla.gnome.org/show_bug.cgi?id=706903 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 29fe0089d..cb5a2940e 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -444,6 +444,7 @@ const Calendar = new Lang.Class({ { row: 0, col: 0, col_span: offsetCols + 7 }); this._backButton = new St.Button({ style_class: 'calendar-change-month-back', + accessible_name: _("Previous month"), can_focus: true }); this._topBox.add(this._backButton); this._backButton.connect('clicked', Lang.bind(this, this._onPrevMonthButtonClicked)); @@ -452,6 +453,7 @@ const Calendar = new Lang.Class({ this._topBox.add(this._monthLabel, { expand: true, x_fill: false, x_align: St.Align.MIDDLE }); this._forwardButton = new St.Button({ style_class: 'calendar-change-month-forward', + accessible_name: _("Next month"), can_focus: true }); this._topBox.add(this._forwardButton); this._forwardButton.connect('clicked', Lang.bind(this, this._onNextMonthButtonClicked));